# -*- coding: utf-8 -*-

import datetime

from backtest import Backtest
from data import HistoricCSVDataHandler
from execution import SimulatedExecutionHandler
from portfolio import Portfolio
from quantification.MovingAverageCrossStrategy import MovingAverageCrossStrategy

if __name__ == "__main__":
    stock_code = '000868'
    start_date = datetime.date(2022, 10, 1)
    backtest = Backtest(HistoricCSVDataHandler, SimulatedExecutionHandler, Portfolio, MovingAverageCrossStrategy)
    backtest.simulate_trading()
